package org.lc.cmd.connect;

import org.lc.cmd.CmdProvider;
import org.lc.cmd.util.ContextUtil;
import org.springframework.context.ApplicationContext;

import java.util.function.Supplier;

public interface ServerProvider extends CmdProvider {
    default Supplier<ApplicationContext> contextSupplier() {
        return ContextUtil::getContext;
    }
}
